package com.xh.petdogexpert.expert.service;

import java.util.List;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.xh.petdogexpert.base.BaseException;
import com.xh.petdogexpert.expert.dto.Disease;
import com.xh.petdogexpert.expert.dto.DiseaseSymptomLink;
import com.xh.petdogexpert.expert.dto.Symptom;
import com.xh.petdogexpert.sys.service.imp.LovServiceImp.LovEditor;
import com.xh.petdogexpert.user.dto.User;

public interface ISymptomService {
	
	
	List<Symptom> getLastTreeSymptoms(Integer count);

	List<Symptom> querySymptoms(Symptom symptom, Integer page, Integer pageSize);

	List<Symptom> getSecondSymptoms(List<Disease> diseaseSumCf, List<String> symptomIds);
	
	void addSymptomFrequency(List<String> ids);
	
	public List<Symptom> getSymptomsByKeyName(String keyName);

	Symptom getSymptom(Symptom symptom)throws BaseException;
	
	int addUpdateSymptom(Symptom symptom) throws BaseException;
	
	int deleteSymptom(Symptom symptom) throws BaseException;
	 
	List<Symptom>  queryLink(DiseaseSymptomLink link);
	
	int addSymptomsLink(DiseaseSymptomLink link);
	
	public int deleteSymptomsLink(int linkId);
}
